package com.gupaoedu.vip.mongo.demo.entity;

import java.io.Serializable;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "t_member")
public class Member implements Serializable {

    @Id
    private ObjectId id;
    private String nickname;
    private String username;
    private String password;
    private int sex;
    private int age;
    private String addr;

    public Member() {
    }

    public Member(String username, String password, int sex, int age) {
        this.nickname = username;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.age = age;
    }

}
